#ifndef SLIDERDATETIME_H
#define SLIDERDATETIME_H

#include <QGraphicsDropShadowEffect>
#include <QWidget>
#include "Slider.h"
class cSliderDateTime : public QWidget
{
    Q_OBJECT
public:
    explicit cSliderDateTime(QString tag, QWidget *parent = nullptr);
    void createBedSlider();
    void createLightSlider();
    void createTimeSlider();
    void createDateTimeSlider();
    void currentValueChanged(const QString &);
     int getYear() const;
     int getMonth() const;
     int getDay() const;
    int getHour() const;
    int getMin() const;
    int getSec() const;
    void setYear(int year);
    void setMonth(int month);
    void setDay(int day);
    void setHour(int hour);
    void setMin(int min);
    void setSec(int sec);
    void setDateTime(int year, int month, int day, int hour, int min, int sec);
    cSlider *sliderYear=nullptr;
    cSlider *sliderMonth=nullptr;
    cSlider *sliderDay=nullptr;
    cSlider *sliderHour=nullptr;
    cSlider *sliderMin=nullptr;
    cSlider *sliderSec=nullptr;
    QGraphicsDropShadowEffect * effect=nullptr;
    QString tag;
signals:
    void chooseValues(int h,int min,int sec,QString tag);
public slots:
    void pressOK();
    void pressON();

};

#endif // SLIDERDATETIME_H
